/**
 * @name Find Function By Signature
 * @kind problem
 * @problem.severity info
 * @id cpp/find-function-by-signature
 * @description 根据函数签名查找函数实现
 */

import cpp

from Function f
where f.getQualifiedName().matches("%${qualifiedName}%")
select 
    f.getName() as name,
    f.getQualifiedName() as qualifiedName,
    f.getType() as returnType,
    f.getParameters() as parameters,
    f.getFile().getRelativePath() as filePath,
    f.getLocation().getStartLine() as startLine,
    f.getLocation().getEndLine() as endLine,
    f.getEnclosingClass() as enclosingClass,
    f.getEnclosingNamespace() as enclosingNamespace,
    f.getNumberOfParameters() as parameterCount

